print(os.date("%H:%M:%S",os.time()))

--取文件名(带后缀)
function getFileNames(str)
    return str:match("^.+/(.+)$")
end

--取文件名(不带后缀)
function getFileName(str)
    local strName = getFileNames(str)    
    print("___strName__",strName)
    return strName:match("(.+)%.")
end

local name = getFileName("../logs/server/2019_06_03.log")
print(name)


local function round(x, increment)
    increment = increment or 1
    x = x / increment
    return (x > 0 and math.floor(x + .5) or math.ceil(x - .5)) * increment
end

print(round(-15.2354, 10))

local tb = {1}
local num = table.remove(tb,2)
print(num)

local path= "/layuicms2.0/page/login/xxx"
local cmd = path:match(".+%/(%w+)")

print("___",cmd)